package com.redoor.app.stake.basicdata.service.impl;

import com.alibaba.boot.hsf.annotation.HSFProvider;
import com.redoor.app.stake.service.EchoService;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * Created by wangjunlei on 2018/2/2.
 */
@HSFProvider(serviceInterface = EchoService.class, serviceVersion = "1.0.0")
public class EchoServiceImpl implements EchoService {
    @Override
    public String echo(String string) {
        String host = null;
        try {
            host = InetAddress.getLocalHost().getHostAddress();
        } catch (UnknownHostException e) {

        }
        return host + ":" + string;
    }
}